package homeword;
public class objectArrayMain {
    //存放商品的数组
    public static void main(String[] args) {
        objectArray []array=new objectArray[3];
        //创建三个商品对象
        objectArray r1=new objectArray("01","小米su",30.6,99);
        objectArray r2=new objectArray("02","特斯拉",39.6,89);
        objectArray r3=new objectArray("03","华为",13.6,999);
        array[0]=r1;
        array[1]=r2;
        array[2]=r3;
        r1.showArr(array);
    }

}
